import Layout from "@/layout";

const attendRouter = {
  path: "/attendances",
  component: Layout,
  name: "attendances",
  children: [
    {
      path: "",
      name: "attendances",
      component: () => import("@/views/attendances"),
      meta: {
        title: "考勤",
        icon: "excel"
      }
    },
    {
      path: "archiving",
      component: () => import("@/views/attendances/historical"),
      name: "archiving",
      hidden: true,
      meta: {
        title: "归档"
      }
    },
    {
      path: "report/:month",
      component: () => import("@/views/attendances/report"),
      name: "reports",
      hidden: true,
      meta: {
        title: "报表"
      }
    }
  ]
};
export default attendRouter;
